<?php

class Html_IndexController extends Veneer_Controller_Module
{
	function init()
	{
		$this->_dbArray =array('Html');
		$this->_moduleName = 'html';
		$this->_module_id = 6;
		$this->_primary_table ='Html';


		parent::init();
	}

    function indexAction()
    {
        $table = new Html();
        $this->view->objects = $table->fetchPage();
        $this->view->title = "Html Pages";
    }

    public function __call($method, $args)
    {
		$token = substr($method, 0,-6); 	// only lower case
        $table = new Html();
        $this->view->obj = $table->fetchUrlToken($token);
		$this->_helper->viewRenderer->renderScript('index/view.phtml');
//		if($this->view->obj == null) redirect to page not found

    }


}